<?php

/*
 * CopyRight  : (C)2012-2099 HaoTeam Inc.
 * Document   : WechatUser.php
 * Created on : 2021-2-27 12:07:59
 * Author     : Tiger <1192851302@qq.com>
 * Description: This is NOT a freeware, use is subject to license terms.
 *              这即使是一个免费软件,使用时也请遵守许可证条款,得到当时人书面许可.
 *              未经书面许可,不得翻版,翻版必究;版权归属 HaoTeam Inc;
 */

namespace app\api\model;

use think\Model;
use haoteam\traits\JwtAuthModelTrait;
use haoteam\traits\ModelTrait;

/**
 * 
 * Class WechatUser
 * Tiger <1192851302@qq.com> 2021-2-27 12:07:59
 */
class WechatUser extends Model {

    use JwtAuthModelTrait;
    use ModelTrait;

    /**
     * 获取粉丝列表
     * @author Tiger <1192851302@qq.com>
     * @param type $uid
     * @return type
     */
    public static function getFriends($uid) {
        $model = self::where('spread_spid', $uid)->paginate(input('limit', 10));
        return $model->items();
    }

}
